<template>
  <!-- 操作日志管理 -->
  <div class="box">
    <avue-crud :ref="refName"
               :option="option"
               :page="page"
               :table-loading="tableLoading"
               @row-update="handleUpdate"
               @row-save="handleSave"
               @row-del="rowDel"
               @size-change="sizeChange"
               @current-change="currentChange"
               @refresh-change="refreshChange"
               @search-reset="searchChange"
               @search-change="searchChange"
               v-model="form"
               :data="tableData">
    </avue-crud>
  </div>
</template>

<script setup>
import {option} from '@/table/sys/oper_log/list.js'

const {
  form,
  page,
  refName,
  tableData,
  tableLoading,
  handleSave,
  handleUpdate,
  rowDel,
  searchChange,
  refreshChange,
  sizeChange,
  currentChange,
  activated,
} = useTableMixins(option, "sys-oper-log", {
  page: {
    total: 0,  // 总记录数
    currentPage: 1,  // 当前页数
    pageSize: 20,  // 每页显示多少条
    sortdatafield: "oper_time",  // 排序字段名
    sortorder: "desc"  // 排序方式 asc/desc
  }
})
onActivated(() => {
  activated()
})
</script>

<style scoped>

</style>
